from django.db import models


class TimeStampedModel(models.Model):
    """
    一个抽象基类添加模型的通用字段
    """
    created = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
    updated = models.DateTimeField(auto_now=True, verbose_name='更新时间')

    class Meta:
        abstract = True
